package com.gitee.proxy.server;

import com.gitee.proxy.handler.proxy.ProxyHttpRequestDataHandler;
import io.netty.channel.EventLoopGroup;

//@Data
public class ServerConfig {
    public ServerConfig() {
        this.handler = new ProxyHttpRequestDataHandler(this);
    }

    /**
     * 客户端线程组
     */
    private EventLoopGroup proxyLoopGroup;

    private ProxyHttpRequestDataHandler handler;

    public EventLoopGroup getProxyLoopGroup() {
        return proxyLoopGroup;
    }

    public void setProxyLoopGroup(EventLoopGroup proxyLoopGroup) {
        this.proxyLoopGroup = proxyLoopGroup;
    }

    public ProxyHttpRequestDataHandler getHandler() {
        return handler;
    }

    public void setHandler(ProxyHttpRequestDataHandler handler) {
        this.handler = handler;
    }
}
